package ly.gupao.edu.java8;

import lombok.Data;

/**
 * @author: liyang
 * @date：2018/10/17 0017
 * describe：
 */
@Data
public class Dish {

    public enum Type { MEAT, FISH, OTHER }

    private String name;
    private final boolean vegetarian;
    private final int calories;
    private final Type type;
    public Dish(String name, boolean vegetarian, int calories, Type type) {
        this.name = name;
        this.vegetarian = vegetarian;
        this.calories = calories;
        this.type = type;
    }

    public static void main(String[] args) {
        String str = "DeferTax";
        System.out.println(str.toLowerCase());
    }

    public Dish setName(){
        this.name = "x";
        return this;
    }

}
